#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

void test01()
{
	int a[] = { 4,6,2,1,5,8,2,9 };
	Heap hp;
	int n = sizeof(a) / sizeof(a[0]);
	HeapCreate(&hp, a, n);
	
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	printf("\n");

}

int main()
{
	test01();
	return 0;
}
